home *** CD-ROM | disk | FTP | other *** search
- package
- {
- public class SoundManager
- {
-
-
- private var §\x01\x01\x01\x02§:Boolean = false;
-
- public var §\x01\x01\x01\x04§:* = null;
-
- public var §\x01\x01\x01\x05§:* = null;
-
- public var §\x01\x01\x01\x06§:* = null;
-
- private var §\x01\x01\x01\x07§:* = null;
-
- public function SoundManager()
- {
- §\x01\x01\x01\x05§ = null;
- §\x01\x01\x01\x06§ = null;
- §\x01\x01\x01\x04§ = null;
- §\x01\x01\x01\x07§ = null;
- §\x01\x01\x01\x02§ = false;
- super();
- §\x01\x01\x01\x05§ = new mainmenubgm();
- §\x01\x01\x01\x06§ = new gameoverbgm();
- §\x01\x01\x01\x04§ = new highscorebgm();
- }
-
- public function stopBgm() : *
- {
- if(§\x01\x01\x01\x07§)
- {
- §\x01\x01\x01\x07§.stopSound();
- }
- }
-
- public function §\x01\x01\x01\x03§() : *
- {
- if(§\x01\x01\x01\x07§)
- {
- §\x01\x01\x01\x07§.fadeOut(false);
- }
- }
-
- public function playBgm(param1:int) : *
- {
- if(§\x01\x01\x01\x07§)
- {
- §\x01\x01\x01\x07§.stopSound();
- }
- if(param1 == 1)
- {
- §\x01\x01\x01\x07§ = §\x01\x01\x01\x05§;
- §\x01\x01\x01\x07§.playSoundLoop();
- §\x01\x01\x01\x07§.setVolume(1);
- }
- else if(param1 == 2)
- {
- §\x01\x01\x01\x07§ = §\x01\x01\x01\x05§;
- §\x01\x01\x01\x07§.playSoundLoop();
- §\x01\x01\x01\x07§.setVolume(0.8);
- }
- else if(param1 == 3)
- {
- §\x01\x01\x01\x07§ = §\x01\x01\x01\x06§;
- §\x01\x01\x01\x07§.playSoundLoop();
- §\x01\x01\x01\x07§.setVolume(1);
- }
- else if(param1 == 4)
- {
- §\x01\x01\x01\x07§ = §\x01\x01\x01\x04§;
- §\x01\x01\x01\x07§.playSoundLoop();
- §\x01\x01\x01\x07§.setVolume(1);
- }
- else
- {
- stopBgm();
- }
- }
-
- public function setVolume(param1:Number) : *
- {
- if(§\x01\x01\x01\x07§)
- {
- §\x01\x01\x01\x07§.setVolume(param1);
- }
- }
- }
- }
-